package ${PACKAGE_NAME}.act;
import ${ANDROID_APP_ID}.R;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.ImageView;
import android.view.ViewGroup;

import butterknife.BindView;
import butterknife.ButterKnife;
import ${ANDROID_APP_ID}.base.act.BasePActivity;
import ${PACKAGE_NAME}.entity.${KEY_WORD}Model;
import ${PACKAGE_NAME}.presenter.${KEY_WORD}Presenter;
import com.woai.common.util.IntentUtils;
import com.woai.common.util.ToastUtil;

/**
 * ${CLASS_NAME}
 * Created on ${DATA}.
 * @author WuGefei
 */
public class ${CLASS_NAME} extends BasePActivity<${CLASS_NAME}, ${KEY_WORD}Presenter>{
         <!--模块-->
         <activity
           android:name="${PACKAGE_NAME}.act.${CLASS_NAME}"
           android:screenOrientation="portrait"/>

    @BindView(R.id.titleBar)
    RelativeLayout titleBar;

    @BindView(R.id.tvTopTitle)
    TextView tvTitle;

    @BindView(R.id.iv_back)
    ImageView ivBack;

    @BindView(R.id.iv_right)
    ImageView ivRight;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.${XML_NAME});
        init();
    }

    protected void init() {
        ButterKnife.bind(this);
        titleBar.setVisibility(View.VISIBLE);
        ivBack.setVisibility(View.GONE);
        ivRight.setVisibility(View.GONE);
        tvTitle.setText("${KEY_WORD}");
        request();
    }

    private void request(){
        presenter.request(this);
    }

    public void bindData(${KEY_WORD}Model model){

        if(model==null){

        }

    }

    @Override
    protected ${KEY_WORD}Presenter createPresenter() {
        return new ${KEY_WORD}Presenter();
    }
}